package yf.mall.entity;


import lombok.Setter;
import lombok.Getter;
import yf.mall.vo.ItemVo;

import java.io.Serializable;
import java.util.Date;


/**
 * 购物车实体
 * 表名 cart
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date Fri Aug 23 14:10:36 CST 2019
 */
@Setter
@Getter
public class CartEntity extends ItemVo implements Serializable {
    private static final long serialVersionUID = 1L;

    //
    private Long id;
    //用户ID
    private Long userId;
    //产品Id
    private Long goodsId;
    //规格名称
    private String skuName;
    //数量
    private Integer quantity;

    private Boolean selected;

    public CartEntity(){

    }

    public CartEntity(Long userId, Long goodsId, String skuName,Integer quantity,Boolean selected) {
        this.userId = userId;
        this.goodsId = goodsId;
        this.skuName = skuName;
        this.quantity = quantity;
        this.selected = selected;
    }
}
